package com.mz.ozy.mvp.view;

import android.app.Activity;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.FirmOrderBean;
import com.mz.ozy.bean.ShoppingCartListBean;

/**
 * Created by Administrator on 2018/12/6.
 * 购物车契约
 */

public interface CarContract {

    interface View extends BaseView {

        void onInitSuccess(ShoppingCartListBean shoppingCartListBean);

        void onInitError(String msg);

        void onDeleteGoodsSuccess();

        void onEditGoodsCountSuccess(String s);

        void onSubmitSuccess(FirmOrderBean firmOrderBean, String cid);

        void onSubmitError(String msg);
    }

    interface Presenter extends BasePresenter<View> {

        void initData(Activity activity, String pageNo, boolean isFirstLoad);

        void operateGoods(Activity activity, String substring, String goodsId);

        void editGoodsCount(Activity activity, String goodsId, String count);

        void submit(Activity activity, String list, String type, String gid, int totalNum);
    }
}
